import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { RoleEntity } from "../Entity/role.entity";
import { RoleMoudle } from "./role.moudle";
import { UsersController } from "../controller/user.controller";
import { UsersEntity } from "../Entity/user.entity";
import { UsersService } from "../service/users.service";

@Module({
    imports:[
        RoleMoudle,
        TypeOrmModule.forFeature([UsersEntity,RoleEntity])],
    providers: [UsersService],
    controllers:[UsersController],
    exports: [UsersService],
})
export class UsersModule { }